﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Collections;

namespace com.woodsoft.core {
	public class XmlNodeList<T> : IEnumerable<T> where T : XmlNode {

		#region Variables
		private List<T> _items = null;
		#endregion

		#region Constructors
		public XmlNodeList () {
			this._items = new List<T>();
		}
		#endregion

		#region Properties
		public T Item ( int index ) {
			return this._items[index];
		}
		#endregion

		#region IEnumerable<T> Members

		public IEnumerator<T> GetEnumerator () {
			return this._items.GetEnumerator();
		}

		#endregion

		#region IEnumerable Members
		System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () {
			return this.GetEnumerator();
		}
		#endregion
	}
}
